package com.leigang.java.code.design.mode.templateMethod.impl;

import com.leigang.java.code.design.mode.templateMethod.AbstractCaffeineBeverage;

/**
 * @author leigang
 * @version 1.0
 * @date 2022/5/4 23:08
 **/
public class Coffee extends AbstractCaffeineBeverage {
    /**
     * 冲泡
     */
    @Override
    public void brew() {
        System.out.println("Dripping coffee through filter");
    }

    /**
     * 添加调料
     */
    @Override
    public void addCondiments() {
        System.out.println("Adding Sugar and Milk");
    }


}
